package com.ljxy.score.mapper;

import com.ljxy.score.entity.domain.myscore;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.CacheNamespace;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.cache.decorators.ScheduledCache;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * @author 86189
 * @description 针对表【myscore】的数据库操作Mapper
 * @createDate 2022-12-19 16:56:01
 * @Entity generator.domain.myscore
 */
@Mapper
@Transactional(rollbackFor = Exception.class)
@CacheNamespace(eviction = ScheduledCache.class, blocking = true, flushInterval = 60 * 1000)
public interface myscoreMapper extends BaseMapper<myscore> {
    List<myscore> getByClassId(@Param("id") Integer id);

    List<myscore> getAllClass();

}




